package basic;

public class GoodDogTest {
	public static void main(String[] args) {
		Dog d1 = new Dog();
		d1.size = -10;
		System.out.println("d1.sie = " + d1.size);
		GoodDog d = new GoodDog();
		//d.size = -1;
		// 赋值，调用setter
		d.setSize(-10);
		// 取值，调用getter
		System.out.println("size = " + d.getSize());
	}

}
